let ul = document.querySelector('.wzdh ul')

const xhr1 = new XMLHttpRequest()
xhr1.open("get","http://chst.vip:1234/api/getsitenav")
xhr1.onload = function(){
    let res =JSON.parse(xhr1.responseText)
    // console.log(res)
    let res1 = res.result
    console.log(res1)

    let lis=''

    res1.forEach(item => {
        lis +=
        `
        <li>
            <a href="${item.navHref}">
                <img src="${item.navImg}" alt="">
                <span>${item.navTitle}</span>
            </a>
        </li>
        `
        
    });

    ul.innerHTML = lis
}
xhr1.send(null)